import request from "@/utils/request";
export function getDishes(params) {
  return request({
    url: "/dish/page",
    method: "get",
    params,
  });
}

export function changeStatus(data) {
  return request({
    url: "/dishes",
    method: "put",
    data,
  });
}

export function deleteDish(id) {
  return request({
    url: `/dishes/${id}`,
    method: "delete",
  });
}
export function addDish(data) {
  return request({
    url: "/dishes",
    method: "post",
    data,
  });
}
